home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / DataScope 2.0.3 / DataScope2l / TCPIncludes / netevent.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-04  |  1.6 KB  |  35 lines  |  [TEXT/MPS ]

  1. #define USERCLASS    1
  2. #define ICMPCLASS    2
  3. #define ERRCLASS    4
  4. #define SCLASS        8
  5. #define CONCLASS    0x10
  6.  
  7. #define ERR1    1        /* an error message is waiting, ERRCLASS */
  8.  
  9. #define IREDIR    1        /* ICMP redirect, ICMPCLASS */
  10.  
  11. #define CONOPEN 1        /* connection has opened, CONCLASS */
  12. #define CONDATA 2       /* there is data available on this connection */
  13. #define CONCLOSE 3        /* the other side has closed its side of the connection */
  14. #define CONFAIL 4        /* connection open attempt has failed */
  15.  
  16. #define UDPDATA 1        /* UDP data has arrived on listening port, USERCLASS */
  17. #define DOMOK    2        /* domain name ready */
  18. #define DOMFAIL 3        /* domain name lookup failed */
  19. #define FTPCOPEN 20     /* FTP command connection has opened */
  20. #define FTPCLOSE 21     /* FTP command connection has closed */
  21. #define FTPBEGIN 22     /* FTP transfer beginning, dat =1 for get, 0 for put */
  22. #define FTPEND   23     /* FTP transfer ending */
  23. #define FTPLIST  24     /* FTP file listing taking place */
  24. #define FTPUSER  25     /* FTP user name has been entered */
  25. #define FTPPWOK    26        /* FTP password verified */
  26. #define FTPPWNO 27        /* FTP password failed */
  27. #define RCPBEGIN 30        /* RCP beginning */
  28. #define RCPEND 31        /* RCP ending */
  29.  
  30. #define UDPTO 1            /* UDP request from DOMAIN timed out, SCLASS */
  31. #define FTPACT 2        /* FTP transfer is active, keep sending */
  32. #define TCPTO  3        /* TCP for DOMAIN timed out */
  33. #define RCPACT 4        /* rcp is active, needs CPU time */
  34. #define RETRYCON 5        /* retry connection packet, might be lost */
  35. #define CLOSEDONE 6        /* Close completion routine has been called (for Mac Drivers only) */